package com.licslan.hwl.controller;

import com.licslan.hwl.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class TestController {

    @Autowired
    private DemoService demoService;
    @RequestMapping("/x")
    public String getString(){

        String string = demoService.sayHello("hello world!");

        return string;
    }


    @RequestMapping("/y")
    public String getStringForTest(){

        String string = demoService.areYouOk("hello world!");

        return string;
    }


}
